home *** CD-ROM | disk | FTP | other *** search
/ Business Shareware / Business Shareware.iso / start / gfxapps / pbmpl91d / pbmplus / man / pgmtoppm.man < prev    next >
Text File  |  1993-01-08  |  2KB  |  70 lines

  1.  
  2.  
  3. pgmtoppm(1)                Unix Programmer's Manual                pgmtoppm(1)
  4.  
  5.  
  6. NAME
  7.      pgmtoppm - colorize a portable graymap into a portable pixmap
  8.  
  9. SYNOPSIS
  10.      pgmtoppm colorspec [pgmfile]
  11.               ---------  -------
  12.      pgmtoppm colorspec1-colorspec2 [pgmfile]
  13.               ---------- ----------  -------
  14.      pgmtoppm -map mapfile [pgmfile]
  15.                    -------  -------
  16.  
  17. DESCRIPTION
  18.      Reads a portable graymap as input.  Colorizes it by multiplying  the  the
  19.      gray  values by specified color or colors, and produces a portable pixmap
  20.      as output.
  21.  
  22.      If only one color is specified, black in the pgm  file  stays  black  and
  23.      white in the pgm file turns into the specified color in the ppm file.  If
  24.      two colors (separated by a dash) are specified, then black gets mapped to
  25.      the first color and white gets mapped to the second.
  26.  
  27.      The color can be specified in five ways:
  28.  
  29.      o    A name, assuming that a pointer to an X11-style color names file was
  30.           compiled in.
  31.  
  32.      o    An X11-style hexadecimal specifier: rgb:r/g/b, where r g and  b  are
  33.           each 1- to 4-digit hexadecimal numbers.
  34.  
  35.      o    An X11-style decimal specifier: rgbi:r/g/b, where  r  g  and  b  are
  36.           floating point numbers between 0 and 1.
  37.  
  38.      o    For backwards compatibility, an  old-X11-style  hexadecimal  number:
  39.           #rgb, #rrggbb, #rrrgggbbb, or #rrrrggggbbbb.
  40.  
  41.      o    For backwards compatibility,  a  triplet  of  numbers  separated  by
  42.           commas:  r,g,b, where r g and b are floating point numbers between 0
  43.           and 1.  (This style was added before MIT came up  with  the  similar
  44.           rgbi style.)
  45.  
  46.      Also, the -map flag lets you specify an entire colormap to be used.   The
  47.      mapfile  is just a ppm file; it can be any shape, all that matters is the
  48.                         ---
  49.      colors in it and their order.  In this case, black gets mapped  into  the
  50.      first color in the map file, and white gets mapped to the last.
  51.  
  52. SEE ALSO
  53.      rgb3toppm(1), ppmtopgm(1), ppmtorgb3(1), ppm(5), pgm(5)
  54.  
  55. AUTHOR
  56.      Copyright (C) 1991 by Jef Poskanzer.
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.                                11 January 1991                               1
  69.  
  70.